package com.apusic;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.client.RestTemplate;

/**
 * Created by wel on 2017/12/19.
 */
@SpringBootApplication
@ComponentScan
public class Application {

    @Bean
    public RestTemplate restTemplate(){
        return  new RestTemplate();
    }
    public static void main(String[] args) throws Exception {
        SpringApplication.run(Application.class, args);
    }

}